package com.yjh.admin.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yjh.admin.entity.user.SysMenu;
import enums.MenuVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单权限表
 *
 * @author GuoBin
 * @date 2020-10-14 16:49:40
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 通过角色编号查询菜单
     *
     * @param roleId 角色ID
     * @return
     */
    List<MenuVO> listMenusByRoleId(@Param("roleId")Integer roleId);

}
